package cn.wgoodq.domain.propDemo;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by OuKyou on 2017/4/10.
 */
@Component
@ConfigurationProperties(prefix = "objRandom")
public class RandomObject {
    private String str;
    private int number;
    private long bigNumber;
    private int int10;
    private int int10_20;


    public String getStr() {
        return str;
    }

    public void setStr(String str) {
        this.str = str;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public long getBigNumber() {
        return bigNumber;
    }

    public void setBigNumber(long bigNumber) {
        this.bigNumber = bigNumber;
    }

    public int getInt10() {
        return int10;
    }

    public void setInt10(int int10) {
        this.int10 = int10;
    }

    public int getInt10_20() {
        return int10_20;
    }

    public void setInt10_20(int int10_20) {
        this.int10_20 = int10_20;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("RandomObject{");
        sb.append("str='").append(str).append('\'');
        sb.append(", number=").append(number);
        sb.append(", bigNumber=").append(bigNumber);
        sb.append(", int10=").append(int10);
        sb.append(", int10_20=").append(int10_20);
        sb.append('}');
        return sb.toString();
    }
}
